// Copyright 2011-2024 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

#include "third_party/zynamics/bindiff/ida/bindiff_icon.h"

#include <cstdint>

namespace security::bindiff {

// PNG data for a 16x16 pixel RGB icon with transparency channel.
static constexpr const uint8_t kBinDiffIconData[] = {
    0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
    0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x10, 0x00, 0x00, 0x00, 0x10,
    0x08, 0x06, 0x00, 0x00, 0x00, 0x1f, 0xf3, 0xff, 0x61, 0x00, 0x00, 0x00,
    0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00,
    0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00,
    0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x02, 0xfa, 0x49,
    0x44, 0x41, 0x54, 0x38, 0xcb, 0xad, 0x93, 0x4f, 0x68, 0x5b, 0x75, 0x00,
    0xc7, 0x3f, 0xbf, 0xf7, 0x5e, 0x92, 0xf7, 0xd2, 0x34, 0x93, 0xac, 0x25,
    0x66, 0x6b, 0xb7, 0x25, 0x9b, 0xa2, 0x55, 0x2c, 0x6a, 0xd7, 0xce, 0x83,
    0xc8, 0xca, 0x74, 0xb0, 0x83, 0xb2, 0x31, 0xf5, 0xa8, 0xe8, 0xc1, 0x49,
    0xb5, 0x0a, 0x8e, 0x2a, 0xe8, 0x94, 0x1d, 0x36, 0x97, 0x79, 0xd9, 0xa4,
    0xad, 0x15, 0xc4, 0xc3, 0xc0, 0x93, 0x08, 0xfe, 0x3d, 0x28, 0x14, 0xbc,
    0x39, 0x3b, 0x27, 0x73, 0x63, 0x82, 0x86, 0x69, 0xff, 0xa4, 0xe6, 0x25,
    0x4d, 0xd2, 0x24, 0xef, 0x4f, 0xf2, 0xf2, 0x5e, 0xde, 0xcf, 0x83, 0xe8,
    0x41, 0xbd, 0xe9, 0xe7, 0xf8, 0x85, 0xcf, 0xf7, 0xf4, 0xfd, 0xc2, 0x7f,
    0x44, 0xfc, 0x3d, 0x38, 0x7d, 0xea, 0x74, 0x34, 0x6e, 0xe8, 0x47, 0x0c,
    0xdd, 0x38, 0xac, 0xaa, 0xca, 0xbd, 0x41, 0xaf, 0x97, 0x76, 0xdb, 0xed,
    0xa0, 0x65, 0x59, 0x37, 0x1a, 0x4d, 0x6b, 0xb1, 0xd3, 0xf5, 0xde, 0x5b,
    0x98, 0x9b, 0x2d, 0xfc, 0x6b, 0xc1, 0x13, 0x8f, 0x3d, 0xfa, 0xf8, 0x68,
    0x68, 0x9f, 0xc9, 0xfa, 0xcd, 0x5d, 0x83, 0x43, 0x43, 0x0c, 0x3c, 0xf3,
    0x2a, 0x52, 0xd5, 0x68, 0x36, 0x9b, 0x94, 0x4d, 0x93, 0xd5, 0xb5, 0x22,
    0xab, 0xeb, 0xeb, 0xbe, 0xe5, 0x38, 0x79, 0xe0, 0x8d, 0x85, 0xb9, 0xd9,
    0x50, 0xfb, 0x53, 0x3e, 0x39, 0x3d, 0x75, 0x72, 0xdb, 0x95, 0xaf, 0x4f,
    0xc8, 0x9e, 0x2f, 0xfa, 0x13, 0x2a, 0x9d, 0xab, 0x2b, 0x58, 0xf5, 0x2a,
    0x63, 0x0f, 0x4c, 0x62, 0xdb, 0x36, 0xa2, 0x55, 0x27, 0x5e, 0xbd, 0x81,
    0xf6, 0xdb, 0x4a, 0xe4, 0x97, 0x2e, 0xaf, 0xd9, 0xc9, 0xad, 0x03, 0xc0,
    0xb3, 0x1a, 0xc0, 0xf1, 0xe3, 0x33, 0xd3, 0x29, 0xbb, 0xf2, 0x7a, 0x56,
    0x3a, 0x08, 0x25, 0xc0, 0x75, 0x24, 0x63, 0xb9, 0x61, 0xd2, 0x13, 0xfb,
    0x00, 0xf0, 0x2e, 0x7e, 0x85, 0xf9, 0xd6, 0x2b, 0x64, 0x7a, 0x1d, 0xb6,
    0xfb, 0x2a, 0x1d, 0x4f, 0x61, 0x45, 0xc4, 0x8e, 0x3d, 0x79, 0xf4, 0xf0,
    0x45, 0xed, 0xd8, 0xd4, 0x73, 0x59, 0x5d, 0x8f, 0xe5, 0xb7, 0xdd, 0x76,
    0x1f, 0xb5, 0x46, 0x91, 0x71, 0xbf, 0x4c, 0x72, 0x62, 0x92, 0xc2, 0xde,
    0x87, 0x49, 0xc7, 0x0c, 0x00, 0xfc, 0x8f, 0x16, 0xb8, 0x39, 0x6c, 0x53,
    0xe8, 0x84, 0x14, 0x07, 0xb2, 0x18, 0xe6, 0x1a, 0xa2, 0xeb, 0xd1, 0xad,
    0x6f, 0xbc, 0xa8, 0x09, 0x21, 0x5e, 0x48, 0x26, 0x12, 0xfa, 0xe0, 0xee,
    0x5b, 0xd9, 0x73, 0xe8, 0x02, 0x99, 0x4c, 0x06, 0x80, 0xf4, 0xf2, 0x32,
    0xb3, 0x6f, 0x9f, 0xe7, 0xc0, 0x83, 0x0f, 0xe1, 0xc8, 0x18, 0x83, 0x9a,
    0xe4, 0xa6, 0x84, 0x60, 0xa8, 0xf5, 0x2b, 0x95, 0x88, 0x86, 0x2d, 0x05,
    0x7e, 0x34, 0x92, 0x53, 0x14, 0x21, 0x0e, 0x45, 0xa3, 0x51, 0x12, 0x89,
    0xc4, 0x5f, 0x32, 0x80, 0xd5, 0x6a, 0x31, 0xf5, 0xfc, 0x34, 0xb7, 0x8f,
    0x8c, 0x30, 0x3a, 0x93, 0x27, 0x92, 0xde, 0xce, 0x9a, 0x9a, 0x20, 0xa5,
    0x09, 0x34, 0x01, 0x91, 0xe4, 0x16, 0xe4, 0x8e, 0x3d, 0xfd, 0x9a, 0x84,
    0x9d, 0x61, 0x18, 0xe2, 0xba, 0x2e, 0x1f, 0xbc, 0x3b, 0xcf, 0xc1, 0x6b,
    0x9f, 0x62, 0x99, 0xeb, 0x74, 0x87, 0xef, 0x40, 0x9e, 0x38, 0x0f, 0xa9,
    0x34, 0x91, 0xdc, 0x08, 0xf1, 0x73, 0x5f, 0x10, 0x2e, 0x7e, 0x89, 0xe6,
    0xd6, 0x51, 0x5a, 0x1d, 0xa4, 0xd3, 0x43, 0x96, 0x4a, 0x45, 0x75, 0x6c,
    0xef, 0xf8, 0x4b, 0x71, 0x43, 0xd7, 0xe3, 0xcb, 0x3f, 0x92, 0xfb, 0x7c,
    0x9e, 0x4e, 0xad, 0x4c, 0xd1, 0xf2, 0xc8, 0x35, 0x56, 0x09, 0x56, 0x0a,
    0x18, 0x93, 0x47, 0x00, 0x30, 0xe2, 0x71, 0xd2, 0x3b, 0xb2, 0x54, 0x22,
    0x7d, 0x94, 0xdb, 0x3e, 0xe5, 0x8d, 0x2a, 0x96, 0xe3, 0x7c, 0xa8, 0x48,
    0xe4, 0xb7, 0x96, 0x65, 0x51, 0x5b, 0xfc, 0x8c, 0x4d, 0x5f, 0xe5, 0x7b,
    0x75, 0x2b, 0x4d, 0x3d, 0x49, 0x25, 0x80, 0x4f, 0xbe, 0xb9, 0xcc, 0xd5,
    0x1f, 0xae, 0x20, 0xa5, 0xc4, 0x75, 0x1c, 0xcc, 0x52, 0x89, 0x5a, 0x75,
    0x83, 0x46, 0xb3, 0x89, 0xed, 0xba, 0x81, 0x94, 0xf2, 0x9c, 0x06, 0xcc,
    0xdb, 0x8d, 0xfa, 0xc1, 0xba, 0xdd, 0x46, 0x8f, 0x08, 0x82, 0xcd, 0x06,
    0x99, 0x38, 0x18, 0x9a, 0xc2, 0x64, 0x3a, 0x41, 0x2a, 0x9b, 0xa3, 0x52,
    0x36, 0xa9, 0xd7, 0xea, 0x94, 0x4d, 0x13, 0xd3, 0x2c, 0x53, 0xad, 0xd5,
    0xf1, 0x3c, 0xef, 0xd4, 0xc2, 0xdc, 0xec, 0x75, 0xf5, 0xbb, 0x4b, 0x4b,
    0x3f, 0xdd, 0x33, 0x3e, 0xb1, 0xbb, 0x57, 0x5a, 0x1d, 0xed, 0x04, 0x21,
    0x86, 0x2a, 0x10, 0x28, 0xb4, 0xa5, 0xa0, 0xbb, 0xff, 0x28, 0x8d, 0xbe,
    0x14, 0x95, 0x72, 0x05, 0xd3, 0x34, 0x31, 0x4d, 0x93, 0x92, 0x59, 0x66,
    0xb3, 0xd1, 0x7c, 0xa7, 0xe3, 0x79, 0x2f, 0x5f, 0x5a, 0x5a, 0x92, 0x7f,
    0x2c, 0x51, 0x51, 0x9e, 0x2e, 0xe9, 0x5b, 0x7c, 0xd9, 0x67, 0x3c, 0x25,
    0x36, 0xd6, 0xf0, 0x85, 0x42, 0xdf, 0x5d, 0xfb, 0xd0, 0xd3, 0xb7, 0xc0,
    0xcf, 0x05, 0xbc, 0xae, 0x87, 0xed, 0x38, 0x34, 0x9a, 0xad, 0x9a, 0xe3,
    0xba, 0x33, 0x67, 0xcf, 0x9e, 0x79, 0xff, 0x1f, 0x5f, 0x88, 0x68, 0x5a,
    0xfc, 0xfe, 0xbb, 0x47, 0xf7, 0xdf, 0x99, 0xdb, 0xf5, 0x48, 0x2c, 0x33,
    0x7c, 0x40, 0xef, 0x4f, 0xee, 0x8c, 0x68, 0x9a, 0x22, 0x84, 0x68, 0x84,
    0x61, 0x78, 0x39, 0x08, 0x82, 0x8f, 0xbb, 0x7e, 0x70, 0x21, 0x9f, 0x7f,
    0xb3, 0xc5, 0xff, 0xc9, 0xef, 0xe8, 0x69, 0x61, 0x74, 0x46, 0x5d, 0xca,
    0x97, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60,
    0x82};

const absl::string_view kBinDiffIcon(
    reinterpret_cast<const char*>(kBinDiffIconData), sizeof(kBinDiffIconData));

}  // namespace security::bindiff
